package com.yenlien.traceyun.admin.interceptor;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author: bigwangy@sina.com
 * @create: 2020-03-09
 * @description:
 **/

@Component
@ConfigurationProperties(prefix = "traceyun.token")
public class TokenProperties {

    //最大过期时间分钟
    private int expire = 0;

    //刷新时间
    private int refresh = 0;

    //token秘钥
    private String secret = "123456";

    //应用名称
    private String appName;

    public int getExpire() {
        return expire;
    }

    public void setExpire(int expire) {
        this.expire = expire;
    }

    public String getSecret() {
        return secret;
    }

    public void setSecret(String secret) {
        this.secret = secret;
    }

    public int getRefresh() {
        return refresh;
    }

    public void setRefresh(int refresh) {
        this.refresh = refresh;
    }

    public String getAppName() {
        return appName;
    }

    public void setAppName(String appName) {
        this.appName = appName;
    }
}
